﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace VmwareSeacher
{
    public partial class AddServerDialog : Form
    {
        VmServer vmserver = new VmServer();
        public AddServerDialog()
        {
            InitializeComponent();
        }

        private void ok_Click(object sender, EventArgs e)
        {
            vmserver.serverIP = ip_textBox1.Text;
            vmserver.serverUserName = username_textBox2.Text;
            vmserver.serverPassword = password_textBox3.Text;

            this.Close();
            this.DialogResult = DialogResult.OK;
        }

        public VmServer getVmServer()
        {
            return vmserver;
        }
    }
}
